import constants from '../constants/index';

const {
    GET_RECRUIT_ID_SUCCESS,
    GET_RECRUIT_CLASS_SUCCESS
} = constants;

export default (state = {}, action) => {
    switch (action.type) {
        case GET_RECRUIT_ID_SUCCESS:
            return {
                ...state,
                resumeId: action.data,
            };
            case GET_RECRUIT_CLASS_SUCCESS:
                return {
                    ...state,
                    classes: action.data,
                };
        default:
            return state;
    }
};
